package cryptoprovider

import (
	"strings"
)

type Plain struct {
}

func NewPlain() *Plain {
	return &Plain{}
}

func (ap *Plain) Encrypt(plain string) string {
	return plain
}

func (ap *Plain) Check(originCipher, attempCipher string) bool {
	if strings.EqualFold(originCipher, attempCipher) {
		return true
	}
	return false
}

func (ap *Plain) Decrypt(cipher string) (string, error) {
	return cipher, nil
}
